<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%--
  Created by IntelliJ IDEA.
  User: dpeng
  Date: 2015/8/31
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="mytag" uri="http://mycompany.com" %>
<html>
<head>
    <title></title>
</head>
<body>
    <mytag:helloworld/>
    <%
        ArrayList arrayList = new ArrayList();
        arrayList.add("aa");
        arrayList.add("bb");
        arrayList.add("cc");
        pageContext.setAttribute("a",arrayList);
    %>
    <mytag:iterator collection="a" item="item">
        ${pageScope.item}
    </mytag:iterator>

    <%
        Map<Object,Object> map = new HashMap();
        map.put("aa", "a");
        map.put("bb", "b");
        pageContext.setAttribute("a",map);

    %>
    <br>
    <mytag:travealMap resultMap="a" key="key" val="val">
        ${pageScope.key}
        ${pageScope.val}<br>
    </mytag:travealMap>


    <mytag:IfElse test="true" >
        sssss
    </mytag:IfElse>

    <mytag:Loop count="5">
        ddddd
    </mytag:Loop>
</body>
</html>
